Array implementation for the recursion algorithm
Recursively update all the objects in the Array, but also uses target
Get the indices of the objects that match the target
Get the index of the object that matches the target (the first one)
TODO: use better algorithm
Get the objects that match the target
Get the object that matches the target (the first one)
Recursively update all the objects in the List