update call to merge bed to fit with newer versions of bedtools. Main modifications are that input bed files have to be sorted chr start and chr end, and we now have to use -c. -o distinc arguments to output the strand information
Simplify the algorithm that parse and process the output of intersect bed