modify Chan-Vese so that it prevent merging