Completed cachematrix.R for R programming course in Coursera