Reverse Polish notation calculator supporting binary operators