add optimized inverse function for matrix11 matrix22 matrix33