[search] Improved klotski.py with deque and set to gain better performance