working on reverse polish problem