Implimented the makeCacheMatrix and cacheSolve functions