Update Det_calc.cpp

finally works