Adding basic multithreading program using threading library