In reply to chr_sue:
Thanks for suggestion.
Could you suggest some pseudo code for the same if possible