haskell: add solution to problem 36