Fixed up the IsSubTree solution