creating chapter 4 of cormen