Update version 1 bestfirst search