Analysis of Data using machine learning algorithms built from scratch