Completed code stubs in cachematrix.R