added testfile and cachematrix functions