Weka example of clustering and macro to do C++ serialization