Added functionality to either pass the data as feature vectors or as dissimilarity matrix directly