added the txt file with algorithm