reverse polish notation calculator in ruby