cachematrix.r code completed

Working commented version of matrix cache code