Added classes for polygons and quaternion math