improve feature and refact the TaskQueue and VisitedQueue .