modified JCuda wrapper to the new CUDA ChangeMatrix