Complex Calculator in C#