Algorithms for flow-shop problem