Homework 2

Changed cachematrix.R according to homework instruction