Mayo, Kaman help Mavericks end three-game skid