reduced a couple of instructions
added computation of matrix v as a quaternion