Add Hash examples

I also put the output above the main function of each example so that
other people can view them online.

A BASH script ‘run_exams.sh’ is also added to build and run the examples
together.