Create generic GraphTreeSearch util class