split rectangles into proper triangles