[localization] linear and non linear localization solutions updated for n neighbors