Re: appropriate algorithm for application