Implemented methods makeCacheMatrix and cacheSolve for week 3 assignment.