Create Classifier_Stage1

In this file, I use R to code part of classification rules. Sentences in "#" are comments which may help u understand functions of each part.

Don't worry about the programming language, R is easily transformed to JAVA. The core logic are the same.