Implemented methods to get father and child positions in the array from some other position.