Dynamic allocation for mainsearch, like other search structures