Implementation of Machine Learning Algorithms Using Control-Flow and Dataflow Paradigms