Implemented the makeCacheMatrix and cacheSolve fucntions