Implemented a reverse polish calculator.