WNBA reaches collective bargaining agreement