Sequential Algorithm In Machine Learning