Using arrays for multiplication