Created solve/cache matrix inverse functions per Assignment 2