Added abstract implementation of generic tree enumerator.