fix lateral synapse index, was wrong when segments grow
TP cell learning; store learn-segments; tune SDR numbers in demo
limits on number of synapses per segment, and segments per cell.
new core functions for querying and updating region trees.