finish assignment 2

coding in cachematrix.R