added a slightly better split-axis heuristic