added snippets for C, java and LaTeX