Minor.
Removed unused code.
Temp code for simplifying convex hull.