calcDeterminant bugfix on matrix size 1