matmul shared working