program to search an integer in almost sorted array