objects used to call algorithms in spark