Exploiting Time Series Primitives To Solve Realistic Data Mining Problems