Perform matrix calculation on Cuda-supported device by using Java and JNI