Hornets win NBA draft lottery, will pick 1st and 10th