Matrix multiplication by using multi-thread