Implement Sparse Matrix Using Arrays