Replaced all iterator and const_iterator declarations with auto

Also changed iterator names 'ii' to more intuitive 'it'