standard c++ rpn ga