removed own implementation of 2D geometry classes and now using OpenCV ones