script to merge bed files