fixing pow function

pow(int, int) can't be used, need to use CUDA powf. Also, going to begin
testing multithreading shortly.