refactored heuristic truck hierarchy