General chord diagram crossings method + bug fix