function that searches for initial parameters of binary outcome function to initiate the sampler
optimal_k_bin(x, y, c, lb, ubr, ubl)
a list with kl and kr and cubic functions parameters
score data
outcome data
cutoff
minimum window size
maximum value of the window's right boundary point
minimum value of the window's left boundary point