Added .getNNPairs for nearest-neighbor pair generation and added test, and refactored Chemistry