Add function to convert formulae to expression trees using Shunting-yard algorithm