new algorithm, input from txt