proposition of modifications for tutorial 5

- Update the code to use shared pointers
- Modification of SConstruct to match the ones of previous tutorials. 
- there are few modification in the text.