Basic search structure, scheduler and a*