HMLP: High-performance Machine Learning Primitives