Update ConvertToC.m

Fixed bugs and added conversion for ^2 operators to use the sq() function