Added a method to process the postfix formula, and calculate its value.