evaluate reverse polish