improve cmake and move sample to separate folder
add threshold example for "Code GPU with CUDA course"