find smallest subarray sequentially covering all values