First version of cachematrix program for assignment #2 - canhuck