adds bitwise sort, still too slow