Shifted fairSelectionTree functions above tree declaration