Beal’s 40-point effort lifts Washington to 135-128 win over Memphis