internal static bool _IsSmaller(short[] tree, int n, int m, sbyte[] depth) { short tn2 = tree [n * 2]; short tm2 = tree [m * 2]; return (tn2 < tm2 || (tn2 == tm2 && depth [n] <= depth [m])); }