Created C++ spatial pooler