A simple triangulation algorithm for a 2D plane