update main loop timing to be consistent across all graphcuts
Left the old while loop commented in graphcut4 just in case we need to look back at it.
Once we verify that the new version of the loop is working then we should take out the comments