repartition update

changed repartition source selection algo and hash algo