calibrate_BPP_threshold function

Function to calculate the 'optimal' BPP threshold value