The Modern CUDA Toolbox in Practice: A Step-by-Step Optimization Walkthrough