Add optimal triangulation

reference:

http://www8.cs.umu.se/kurser/TDBA77/VT06/algorithms/BOOK/BOOK2/NODE48.HTM
http://www.cs.utoronto.ca/~heap/Courses/270F02/A4/chains/node2.html