implementation of bezier curves and intersection complete.
self intersection started