fixed bug
findOptimumCut now works
need to properly implement 2d plots