The desiogn and analysis of computer algorithms - Aho Alfred V. (Addison wesley publishing company, London, 1974)