Completed Programming Assignment 2. Edited cachematrix.R.