kth permutation
populate Next pointer in each binary tree node