Added part of phase 2 for the temporal pooler. The predictive state is updated