Finished the functions in cachematrix.R