Added quaternion interpolation code