add in_neighborhood method