Reference. Introduction to algorithms [cormen1990]