add heuristic.py: heuristic algorithm