LinkSet class extracted out of LinkCollector class.
add and rectify methods moved to LinkSet class.