Number theory operations on BigIntegers in C#