Removed redundant flush instructions.

std::endl adds a line break to the given stream, but it also flushes the stream buffer, making the explicit call to std::flush useless.