clean the algorithms and add test datas