first try of multiple threading
Need to specify -std=c++11 compiler option in order to compile.
Need to specify -pthread linker option inorder to run.
Need to use uniform initializer when initializing a thread from a function object.