Added matrix multiplication as a performance test

I am not sure that matrix multiplication is really relevant to the image processing, but it's definitely a good performance test.
Another style nit:

We always use braces for multi-line if statements, and we put a space between the if and the open parenthesis.