Add ReversePolish class