output a sorted file
gen sig for each line and merge them
merge line with same sig
test file