Implement cachematrix.R

Filled in implementation and comments for requisite functions.