Well-separated pair decomposition