my @interval_arrays = map [$a[$_], $b[$_]], 0..$#a;