Implementation of Algorithms found in the book "Introduction to Algorithms" in Objective-C