Implement Sparse Matrix Using Array Algorithms