Support extent trees of depth > 1

Is not uncommon to find extent trees that have a depth bigger than one.
This commit further builds on the previous refactoring of extents.c to have
a naive recursive implementation of the tree search.  Is far from being
efficient, but it does the job.