added tipicality, contribution and distances calculation methods