Fast algoritms for flexible arms vibration-free movements