construct btree from pre in