Implemented serialization for C++ Spatial Pooler