Added markov impl and L2 to ALG