Optimize POJ3843 solution

Using hash set to accelerate expression match
POJ3843 now accepted