Get rid of instances of "using namespace std;" in the project

Not for this PR i guess, but it could use a range-based for loop here, right?