original function to split segments back to read bins
Source:R/converting_segments_and_reads.R
old_segs_to_reads.Rdkept for posterity. This splits into exact 500kb bins, which may extend beyond end of chromosome, as original DLP did. New function is wildly faster and more simple.