Adds implementation of functions in cachematrix.R