Refactored old hama matrixmultiplication example