Implementation and test script for extraction of sub-guidetrees with
pointers to the original.