Implementation of various ML algorithms