Basic Reverse Polish notation calculator