two functions has been added into cachematrix.R