Deep learning for computer vision: a comparison between convolutional neural networks and hierarchical temporal memories on object recognition tasks