> For worst case and dataset in problem your script beats all. > For simple but large data it's Anand's solution just slightly ahead. > > Wow. Thanks for the info, Shekhar. I am happy :) Regards, BG -- Baishampayan Ghose b.ghose at gmail.com