rebuild binary tree by given previous order and inner order