Added implementations in cachematrix.R