add calculator based on reverse polish notation