1. A method for encoding a picture, the method comprising: storing a reference frame in a first content addressable memory; generating a first data word as a function of one or more pixel values in a first prediction block; addressing the first content addressable memory with the first data word to generate a first set of one or more addresses where content is associated with the first data word; generating a second data word as a function of one or more pixel values in a second prediction block; filling a second content addressable memory with the content, from the first content addressable memory, located at the first set of one or more addresses; generating a first modified data word from the first data word; addressing the second content addressable memory with the first modified data word; addressing the first content addressable memory with the second data word to generate a first set of one or more addresses where the content is associated with the second data word; wherein the first content addressable memory is addressed with the second data word while the second content addressable memory is addressed with the first modified data word.