Role of Sparse matrix in machine learning