generics for optimizing brainfuck dialects