add LCA algorithm, missed before
environment tweaks