solution to 39 in go, move all haskell solution in separate folder