Accelerating the "Motifs" in Machine Learning on Modern Processors