Find min sub array to sort