CLaP -- State Detection from Time Series