Create WeightedUnionPathCompression.java