spatial pooler implemented