implemented cubic bezier in vector2