Distributed Machine Learning Framework: New Algorithms And Theoretical Foundation