Reusing segments after hitting the max segments per cell limit

Fixes https://github.com/numenta/nupic.core/issues/232.

Have yet to implement logic for reusing synapses, will do that separately.