working on finish up ear-clipping algorithm, added modeView to keep track of which mode is active
summed area calculation for computing clockwise/counterclockwise nature of curve