Multithread matrix multiplication