Assignment 2 completed

Written both functions in cachematrix.R file.