Fixed namespacing

Collisions caused by "using namespace std" resolved