Exercise 6 mat mul, check nan when checking buffer
Include code for exercise MatMul

The kernel body is deleted from the source string, and some minor
changes to make things slightly more clear.
Resolves #1.