flat spatial pooler complete and tested