Flow Matching and Diffusion Models from Scratch: Free Lecture Notes