RTLR2 algo implemented in managed code.