Added script for grouping annotations on sorted input.