optimal_p function

Find an optimal p-value for SONE