Replaced all iterator and const_iterator declarations with auto
Also changed iterator names 'ii' to more intuitive 'it'

Change-Id: I5d63eed1a1b8e44f1b6ec16e537c11bba304c0e4