Parallel matrix multiplication in C