Binary search and array rotation etudes.