Compleatly change how pointer sort is done.

We now have store classes, which define the storrage behaviour of sort.
The new default behaviour is the same as before for small elements, while large elements will be pointer sorted automatically.
You can define your own storrage classes, if for instance you want to use reference counted pointers