tree data structure for pingpong league