Fixed erroneous
Fixed self-intersection testing in convexity test.