Namespace changes

Changed the namespaces from
using namespace std;
to std::xyz.