created algos in latex