Optimized top and bottom extra-lines to top and bottom set elements. This reduces set size for 2*N - 2 elements.