Corrected SSP computation (for last element)
EFS throws an exception if the value of the function SolutionX could not be computed.
Bug fix #292: corrected usage of function DistanceForSpeed