Tag printing with debug to infer purity

The calls to `write` and `writeln` in member `check` prevents `rbtree` from begin `pure`. Adding `debug` is one way of fixing this. I bet you guys think differently but I anyway hope that you all agree on that purity is better than pretting printing in a check member function. One alternative solution would be to make `printTree` return a string which is then fed to `throw new Exception`.