Simpler layouting algorithm, preparations for better node distribution