required methods added to cachematrix.R