Find the maximum length of in order subarray