Complete second chapter for algorithm.
Complete thrid chapter for CUDA