Order preserving hierarchical agglomerative clustering