Implement Sparse Matrix Using Arrays In Python 3