fn find_min_quantum(input: &[u64], groups: u64) -> u64