added special trinagle with pointers to top
added getMinMaxXY in area
new function for trinagulation