binary search helper method
helpers package
package
add kth_root helper
helper to minimise convex function
ternary search
magic trick