Calculation of the phylogenic similarity