Code for cacheSolve function added