Added C# version of the code

Tried to stay in the original intent of the Java code and resist
refactoring :)
Merge pull request #2 from freekleemhuis/master

c# version added