The Brooklyn Nets completed an epic comeback to defeat the Dallas Mavericks 102-99 in Tuesday's NBA action.