Fix addBorderSegments for nested subgraphs
Make top / bottom border nodes take no space
Fix bug in findLCA

Previously LCA terminated as soon as either ancestor path reached the
root. Now it waits until both paths reach the root before terminating.
Added a test to verify this behavior.