Homework for computational geometry - implementation of Kirkpatrick triangulation refinement algorithm.