add method for classifier state serialization (for further implementation using Weka serialization tools)