Wrote makeCacheMatrix and cacheSolve functions for Assignment2