[math-fun] counting orderings of points in D-space