calculate_instability_metrics function

Calculate Repeat Instability Metrics