persistent segment tree problems - Search