add algoritm test with different sample size