0.2.3 Sorting optimized

Now we use only one array to sort