Fix get-neighbors. This should be a complete, working implementation now.