To accurately control the speed of motion along parameterized space curves: principle and application of a new algorithm in CAM/CNC and robotics