changed the method det() in DeterminantCalculator to accept parameters instead of having it only in the constructor