Implement Sparse Matrix Using Arrays With Numpy Append 1d