Fixed bug with inverse of 2x2 matrices