rpn stack implemented in C