Auto-focus selected node. Fixes #445.
Make median use median leaf size. Avoids outliers.