Introduction to the design & analysis of algorithms. (©2012)