AlreadyVisited renamed to Pair. Type conversion in equals modified,
getters removed.