implement peers method to get the associated row, column and subgrid of a given point
remove unneeded code
refactor peers method