New spatial pooler fully implemented

The new spatial pooler is fully functional and ready to replace old implementation. However, the new spatial pooler is still not in use.