The Art of ComputerProgramming, Vol. 3: Sorting and Searching (1973)

by D E Knuth