Assignment 2 cachematrix.R done.