working version of the brainfuck interpreter