Evaluates arithmetic in reverse polish notation.