depth first search of a tournament tree to find the second largest element