Refactoring, started working on nlogn algorithm for symmetry axes.