code for R

Kristynn352's updated code to create cached inverse matrix