how many episodes of dc legends of tomorrow are there