Answer to exercises in Introduction to Algorithms by Cormen et al., 2009