assignment submission with changed cachematrix.R