A statistical test useful in historical linguistics