The theory of search for several goods