Added more of the temporal pooler stage one function. Fixed a bug with the Synapses
 connected permanence value for the spatial pooler.