Major upgrade: sort and potentil on GPU as well