add solution of SameTree problem