added function locateNeighBoursBasedOnGivenNumber