Added C version of mm (for benchmarking later).