Added the first phase of the temporal pattern recognition. The network
creates segment update dicts in phase 1 but does not change the segments yet.