finish multi-thread matrix mulitiplication