find longest continuous subarray (TBD)