Middleton scores 51 as Bucks beat Wizards 151-131