Updated headers to fix error: aggregate 'std::ofstream myfile' has incomplete type and cannot be defined

#include <fstream>
using namespace std;