Calculator based on Reversed Polish Notation