Move the shunting-yard algorithm to the algorithm package

Change-Id: I4369126bc33d7e86b054f3a0984ec72280de2767