potential speedup for SparseVectors
fixes #28