Finding the inverse of a 2x2 matrix