simple math library of matrix and quaternion