private static void merge(In[] streams)
	{

		int N = streams.length;

		IndexMinPQ<String> pq = new IndexMinPQ<String>(N);

		for (int i = 0; i < N; i++)
			if (!streams[i].isEmpty())
				pq.insert(i, streams[i].readString());

		while (!pq.isEmpty())
		{
			System.out.print(pq.min() + " ");
			int i = pq.delMin();
			if (!streams[i].isEmpty())
				pq.insert(i, streams[i].readString());
			
		}

	}