DESPOTA: DEndrogram Slicing through a PemutatiOn Test Approach