add methods to SparseVector