Heuristic five added
fixed a bug in fifth heuristic. Remove the tmp file