think this is optimal hybridsort (apart from vector copy rather than array)