Computational Geometry Algorithm implementation