calculator written in ruby using the shunting yard algorithm