improved the modularisation of adding a new algorithm for latticeGraph
position computing.