evaluate reverse polish notation