Implementation of sparse matrix in Cholesky decompositionto solve normal equation.