Added a few method to construct the tree.
Signed-off-by: Pier-Luc Plante <pier-luc.plante.1@ulaval.ca>