Moved nested classes in MathHelper to their own classes in the Geometry namespace

Updated the unit tests to follow the same structure.