Mavs win at Madison Square Garden