adding algorithm packages to the tex file itself