Reverse Polish Notation implementation.