9 hurt in car accident in upstate New York