The Art of Computer Programming, vol. III: Sorting and searching (1973)

by D E Knuth