fix stackoverflow bug
fix stackoverflow bug

according to https://bugs.openjdk.java.net/browse/JDK-8072909 and http://envisage-project.eu/wp-content/uploads/2015/02/sorting.pdf
GaZ3ll3/cpp-TimSort,gfx/cpp-TimSort