Mavs win, Dirk passes West on all-time points list