Cross-linked from [ANN: bbHTM]

Continuing the discussion from [ANN : bbHTM] Spatial pooler/mapper implementation: