fix FT algorithm to make it more precise
dataset and threshold in parallel