Fixed a bug in log_sum_d.sh where all line where added to first element of array linesSorted