I have an assingment, that I need to solve in Haskell. It was firstly solved in C++, then I rewrote the code to Haskell. The algorithm is working correctly but the Haskell v