fracn in C#