Clustering continuous or categorical data with the forward search