tree_build.cpp: Added partial implementation of buildExpressionTree
The implementation is based in manual dynamic dispatch.