-added function to test if a cuda device is available
-changed to .cu file
-modified to compile with nvcc (wasn't auto-casting void* to point*)