Algorithm to find the closest value. Please see my comment out in the image. To make it more clear, I want to find the first row after input -10. and then the corresponding