Changing cuda double allocate so it works on the double**