add function:if the url has visited it would not be added to the link queue