Cleaned up the buffers
Added an explicit middle point to the bezier curve generation
Number of segments in the subdivided curve is now dependant on the length of vectors derived from its control points. This is a naive solution, invest more time and use a proper adaptive algorithm.