Hi,

Thanks for your response xpi0t0s. It seems little complicated for me to get what you're trying to say. I'll try to code your algorithm and figure out if I could understand the logic.

Thanks again.

Tina