Compact tree of William Foley