Fix the bucket sorting bug. Now working.
    Working for parallel (without memorization)
save.
save.
save.