Reusing segments after hitting the max segments per cell limit

Starts https://github.com/numenta/nupic.core/issues/232.

Have yet to implement logic for reusing synapses, will do that separately.
brace -> new line