Refactored calculations. The linear time symmetry axis checking appears to work.