Implement Sparse Matrix Using Arrays As Parameters