Sort abit: add macros for private memory in-thread sorting