Remove 'using namespace std' as it makes isspace() ambiguous for Clang. using std::vector and std::deque instead.