k-means and k-medians in hmmcopy