add bag of words method to sdm.Features