The art of computer programming fundamental algorithms - Knuth, Donald E. (Pearson, New Delhi, 1997)