Now the bruteforcing solution produces quite nice results in reasonable time