https://dennybritz.com/posts/wildml/attention-and-memory-in-deep-learning-and-nlp/