some exercises implementing algorithms based on Corman's "Intro to Algorithms" textbook