Implement Sparse Matrix Using Array In Python Syntax