Nonparametric method for identifying discordant trees