Added changes to consider weighted hpwl