romain algo 2.0 done, not debugged