make quaternion multiplication function