implementing inverse and determinant

not done yet