Dirk leads Mavs over Nets