initial version of cachematrix
adding comments and matrix equals function