Finds first element larger than given key K in a sorted array A