Pseudo code in latex (beamer)