Replaced search() with searchFirst() in clustering algorithms.