Spatial pooler ongoing dev

Merge for #20