Added debug flag
Added ++itr and changed to use pair struct
Tested ++itr and switch to pairs