added support to save and load the classifier to and from file