Add function to compare neighboorhod