added the pthread linker in the makefile for parts b,c and d, also added code for parts b and c.