C# Finite Field Arithmetic Implementation