Added haskell implementation

Worked on by [Adam](https://github.com/ant1441) and [Matt](https://github.com/mdr)