docs: private static int bisect(int[] array, double value) {
          int pos = 0;
          for (int element : array) {
              if (value < element)
                  break;
              pos++;
          }
          return pos;
      }