Application of Text Mining algorithms in R