cleanup rpn calculator code
update to pass 2 tests