Added bezier segments
Removed some warnings
Improved containers::id and math::vector