Finish Partition algo.Only need generate hashtable

Hash table is easy to implement based my partition result