Text this: Introduction to Algorithms: Algorithms in Jav, second edition