bash matrix multiplication