adding a stack implementation of reverse polish notation