static int binarySearchResultToInsertionPoint(int i) { ret i < 0 ? -i-1 : i; }