Introduction to Algorithms
(Author: Cormen, Thomas H.)