better earliness alg and updateed github link