Wrote a nominal implementation of the classifier

There may be some syntax errors. I’ll go in later and add Javadoc
explaining the functions.