https://www.wikitechy.com/technology/faster-process-sorted-array-unsorted-array/