EDT Algorithm commented for medium post