Added backtracing code for DP with idle tasks

  Also some minor changes:
  1. operator<< for tableEntry class
  2. More debug messages
  3. Idle tasks also have IDs