Write brainfuck interpreter in Python, C/C++ and Haskell