Implement A Sparse Matrix Using Arrays