Wrote functions definitions to cachematrix.R