(1) Refactor classes Node, Lattice et al. (2) Prepare refactoring of
algorithms