Reverse Polish Notation Calculator implementation