added clone graph solution