if you put `continue` after line 81, it will go to line 79 when `it0==it1` and check if `it1` is at the end. If it's not the end, the program goes to line 85. I think the behavior is the same as your code, but maybe I'm wrong. Advantage of this way is you have only one place to check when the loop should be exited. 

This is just suggestion. take what you prefer.