[core] CURE algorithm (almost working instance)