update the paralleliam algorithm, auto use sequentail algorithm if the size of data is less than the size of chunk