Work on the symple cost scaling algorithm.