This Wikipedia article shows that there are quite few algorithms faster than a naïve repeated multiplication:
You would have to ask TMW which algorithm/s they use.
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!