Mathematical Methods For Anomaly Grouping In Hyperspectral Images