Get the maximum median of all D length sequences in an array V