implementation of Sparse Matrix ADT using a list