a star search algorithm example