Fixed the overflowing bug in single thread cholesky factorization.