evaluate reverse polish notation reimpl