Basic Algorithms In Deep Learning