.size() replaced with .empty()
Some 'begin' iterator variables is renamed to 'it' in for loops.