Finds first index of a given key K in a sorted array A