Solving questions from http://www.haskell.org/haskellwiki/99_questions