Finds determinants of matrices using row reduction and cofactor expansion