New algorithms for solving the tasks scheduling problems in discrete manufacturing systems