extracted math operations

Signed-off-by: Emiliano Firmino <elmiliox@gmail.com>
implemented postfix machine

Signed-off-by: Emiliano Firmino <elmiliox@gmail.com>