EDF Algorithm implemented