Search for the index of an existing key in a slope represented by an 2-D array.