Added getNeighbours() function