Did the programming assignment by editing cachematrix.R.