The best way to find a better solution to a hard programming problem is not in front of a computer staring at the more complicated solution, but in the shower, while you exercise, or even while you sleep. Life balance consistently leads to better more simple solutions.