Two skills in one: classifyCrash (per the module-13 contract) and repairMedian — the incident: medianOf was reported to crash on empty input (it indexed v[0] before checking). Repair it: nullopt when empty, true median (average of two middles, as double) otherwise.