Begining of temporal pooler implementation