best_interv_given_k function

Optimal intervention