Initial version of cachematrix.  Still need comments!