High-dimensional causal discovery based on heuristic causal partitioning