Fixed a bug so as to keep planner start next cycle after the last planning failed.
Removed duplicate elements from the temporary list when clean up everything after planning.
Modified cost calculation for recursive rules: only calcualte the unstatisifed precondition cost.
Merge pull request #508 from shujingke/shujing

Modified cost calculation for recursive rules: only calcualte the unstatisifed precondition cost.