Fully functional clustering algorithm using new data