The Art of Computer Programming, Vol 3: Sorting and Searching (1973)

by D E Knuth