Create isSameTree