adding all existing cudaMiner features and CUDA code.