CHANGE: the fminbound and brute force optimizations have been separed in differents files. TODO: join duplicate definitions into core file