Complete Ward Algorithm