.NET C# port of yann2192's pyelliptic: https://github.com/yann2192/pyelliptic