Added classification using DBSCAN clustering, allowing nodes to have multiple inputs