Add a basic greedy heuristic algorithm for join ordering.