How To Learn Algorithms From Scratch