[math-fun] Counting vs. cross-products vs. tree traversal