added implementation of bezier curve interpolation