Use a dedicated tree structure instead of hash maps in the tree benchmark