Generate the minimum possible intructions to update Brainfuck memory.