Caching of hash codes of nodes in graph and using hash in equals. Refactored coarcing to it's own class. Refactored controls. Implemented octree for Barness-Hut simulation to optimize repulsion calculation. Refactored physics simulation.