Completed function writing for cachematrix.R, coursera
ProgrammingAssignment2