prefix notation calculator that accepts unlimited arguments