Is there a Matlab equivalent/port of this R library (Ckmeans)? It performs optimal clustering of 1D data.