calcRPN - calculate reverse polish notation