Introduction to algorithms : a creative approach - Manber, Udi (Addison-Wesley, 1989)