Search in Sorted Array solved