Implement Sparse Matrix Using Arrays With Structures