Determinant/Inverting algorithm on general matrix/Exercise