Mavs top Pacers, end road trip on a high note