Matrix.multiply: Accept 2D arrays and matrices