An implementation of the reverse Polish notation (using stacks).