RPN calculator implemented in C