Algorithm for scheduling with multiskilled constrained resources