Improve balls validation case.
Change automatic threshold to half way between two highest peaks.
Reintroduce local maximum search.
Fix all corner cases.
Validate against spheres.