Sparse vectors for features/documents, fixes to hdf5