Atom sort implemented. Now implemented neighbor search.