Fix a bug in the codes for computing the pseudo inverse of a matrix
Re-enable the heuristics for setting the inverse of some smaller eigen values
to 0 in the case that the matrix is singular