Implemented Serialization for C++ Spatial Pooler