read segments from .bed file