Wrote makeChacheMatrix and cacheSolve functions