Change to namespaces

Changes from
Using namespace std;
to std::xyz everywhere in the code.