trees: add `iterator` method to BinTree

Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>