a simple rpn calculator module in erlang