Curve Heuristic Implemented

Too much debugging