Refactored infix calcul using stacks (my own dirty version)