Added code for segfault example
Merge branch 'gdb' of https://github.com/barbagroup/teaching-materials into gdb