chain construction: now th chain should be sorted around the intersection