Exploring memory-based variants of the RNN architecture