An objective function for order preserving hierarchical clustering