A hierarchical temporal memory revisited with Theano