Add iterators to patricia tree
blockchain: replace Rc mess with internal raw pointers