Added triangulate

Rewrote triangulate class into separate file.  Unit tests forthcoming.