LeBron has triple-double, Lakers pull away to beat Nets