6 Steps To Write Any Machine Learning Algorithm From Scratch: Perceptron Case Study