convert CSparseFeatures to use SGSparseMatrix