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

I think using `auto` would be appropriate here, especially considering that there's even a comment explaining the type. Same for the other changes in this file.