Art of computer programming - Knuth, Donald E (Addison Wesley, 1973)