Agglomerative likelihood clustering