Added "cacheSolve()" function to comply with assignment requirement