finished cachematrix.R and add example_codes.r