Expression Solver in C