initial implementation of cachematrix.R
added documentation