Haskell Programs for Algorithm Design and Analysis Class