Add beautiful, efficient get_neighbor code
Add beautiful, efficient get_neighbor code