Implementation of basic data mining techniques in R