Fork of NClassifier, with my own improvements.