matris multiplication with pthread