cdp with ci from wAVG, and added new algorithm WMC