Cached Matrix and solve

Programming Assignment 2