Multi thread matrix