fixed GMat.TreeSearch