At end of chapter 5.
Moving things around so its easier to compare different algos.