Cholesky decomposition in c working with pthreads