Hardware specially adapted for motion estimation or compensation characterised by techniques for memory access