problem with del path :
adding points out of bounds in insert sorted
(when deleting point from border)
now crash when updating energy after del_path