SIDIER: Substitution and Indel Distances to Infer Evolutionary