Foundations of Algorithms