Spatial pooler ongoing dev

fixes #3