Combining Movement Primitives with Contraction Theory