misc changes

Change Arrays lab to have a more general implementation of array
multiplication.