Bradley Beal agrees to two-year max contract extension with Wizards