Memory and recurrent networks