Adding math classes to replace original Point3d class.