Fix memory issue in Hama GPU MatrixMultiplication2