added some stuff for text-classification and k nearest neighbour