tmp commit
on going work, prepare for F<double>
optim finished, i hope | later : get the code better and smaller
fix bug in optim and remove useless function
add print collisions