Threading now working for matrix multiplication