Euclidean TSP with few inner points in linear space