Completed homework assignment 2 by implementing makeCacheMatrix and cacheSolve functions