Local wire routing by stepwise reshaping by Gerez