Work for assignment #2

Added my version of the code for the cacheMatrix assignment.