First Three Algorithms:  Fast 3-Sum, Weighted Quick Union-Find, and Bubble Sort