Mayo, Kaman lead Mavericks past Raptors 109-104