An implementation of two greedy algorithms in Java for scheduling and to compute a minimum spanning tree