IsSameBST from two arrays