add rebuild binary tree

rebuild a binary tree with integer arrays as input