greedy algorithms: jobs scheduling