input/output file
cocktail sort made easy with std::vector and iterator::ostream_iterator for display