fixed hierarchical clustering code when merging peaks during alignment