should return the value if the value exists in the sorted array