Link nodes at same level in a binary tree