finished pearsonCorrThread
added cond and mutex init and destroy