Fixed determinant calculation. Need to fix floating point number