added body-only HTML template; used own algorithm environment in LaTeX