Updated the code to allow for optional parameters to be passed to solve in cacheSolve