created a couple functions to solve a matrix and cache that solve.

Part of Rprogramming 009 course.