added profiler, improved brute_force(), now work faster