Calculates the Hack quantities, namely, assigned a point in a basin, the projection on the plane of the distance from the watershed measured along the network (until it exists) and then, proceeding again from valley upriver, along the maximal slope lines.
For each network confluence, the direction of the tributary with maximal contributing area is chosen. If the tributaries have the same area, one of the two directions is chosen at random.