Algorithm For Sparse Matrix In Data Structure