High speed motion control of CNC machince tools