Scalable Machine Learning Algorithms Using Path Signatures