Matrix determinant works with matrix size of 2,3