Bad Hair Day union-find by TA