Added profiling. Time to solve down to 13 ms.