draft of custom distance function
h clustering from custom