Fundamental algorithms - Knuth Donald E. & Bhatt P. C. P. (Narosa Publishing House, New Delhi, 1973)