Implemented Weighted Quick Union