add inv,pinv for quaternion