Changed commands to make more sense
Added determinant and inverse for 2x2, trying to use doubles