faster implementation of quat.slerp