terminatePAC function

Terminates if relative deviation from estimated PAC bound for optimum is small. Works at 0.