Annotates the optimization algos for chapter 5