C routine for fast lookup in strict monotonic array of double values.