ecc algorithm

ecc algorithm

update sample
update samples