TAOCP Chap 2 sorting and searching