My F# implementation

I clean and refactor my code a little bit :-)
Merge pull request #3 from kimsk/master

Karlkm's F# implementation