Time Series Classification via Topological Data Analysis