Algorithms for pipeline transfer scheduling