added sampling functions for dfm and corpus
removed unused file