ChiMerge algo added