replace nth_element() with macro that execute sort() instead for gcc 4.8.1 & 4.8.2
not ready for prime time