The two-machine flow shop problem with arbitrary precedence relations