Finished adding all code necessary to cut a triangle into a rectangle.  It compiles but it still remains to be tested