Update matrix.cpp

Fixed determinant bug and added a quickDet() function to much more efficiently calculate determinants using RREF