gauss overflow fix and SVD improve