matrix multiplication in r non-conformable arguments