Implement Sparse Matrix Using Arrays In Python