tree_build.cpp: using lambda functions in buildExpressionTree.