bubble sort in c plus plus reading input from a file and output using fstream