modified_binary_search.cpp

int modified_binary_search(int arr[], int left, int right, int value)
searches for nearest value in an array between left and right
returns the position of the number , 
if it is not a number between arr[left] and arr[right] returns -1