Moved global_cut calculation inside the uboost weights calculation procedure.