Given a sorted array of n integers that has been rotated, find an element