fixes parseSparseVector which was missing the -1 offset for the index (Fixes #21).