Implement commonNode algorithm
Merge commit '2d2978ec03c7460c3b18174cb375c6e0177fe646'