Implemented Stack and used clearer RPN logic.

- http://cl.ly/image/2F2h1I0V0Y0g