Stochastic Sparse Sampling: A Framework for Variable-Length Medical Time Series Classification