Fixed bug with matrix multiplication.

This bug was with multiplication of matrices, which size is not
multiple of local block size.
Also matrices size in tests now is smaller to pass tests faster.

Change-Id: I3b961ccbcf08398cbf34cdc5717beaefba57887c