Changed the logic of the ground profile fitting
Detect overly long ground profiles and reject them