make sure to do cudaFree at end of dot product