created clean version of spatial pooler.