Created cachematrix.r

For homework