implemented internal layout for C++ spatial pooler