ECC Implementation using C#