Implementation of greedy algorythm for scheduling jobs by difference criteria