is there a c++ function to take the determinant of a matrix (represented by a 2-D array)?