BMP: Bridging the Gap between B-Spline and Movement Primitives