Solver for the job shop problem