A density-based clustering algorithm for the CYGNO data analysis