Algorithms for multiprocessor scheduling with two job lengths and allocation restrictions