Solution 3 uploaded.

Still need memory improvements for python code and development for
haskell code.