Modified some code to match current code style and fix a bug
where LCA was not stored properly in object

Signed-off-by: Pier-Luc Plante <pier-luc.plante.1@ulaval.ca>