Adding serialize and unserialize support for storing classifier parameters