Added balancing for left and right aligned splits in the layout with a simple mean calculation. In case a branch is near at the split, the below part of the graph is shifted by a small amount.