New clique and independent set algorithms for circle graphs