Many thanks to all who responded, and especially for the promptness of your
answers.  The common thread in your solutions is the use of rle, a very
useful function of which I was ignorant.

--Krishna

	[[alternative HTML version deleted]]


