Non-optimized CUDA

Includes comments, fully functional