Fundamental algorithms - Knuth, Donald E (New Delhi Narosa Publishing House, 1992)