solve the haskell 99 problems in X lang