Mathematical Expression Evaluator

Hand written algorithm.