Brainf*ck interpreter optimized with instruction collapsing and selective code segment precomputation