kmedoid for sequence clustering