Changed return type because you can't return arrays in C.....
Removed cuda matrix dot declaration
Changed delcarations from arrays to pointers to pointers
Removed cuda_matrix_dot function